<template>
  <div>
    app
    <p @click="change">{{obj.name}}</p>
  </div>
</template>
<script>
import { reactive } from "vue"
export default {
  setup () {
    const obj = reactive({
      name: '李白'
    })
    const change = () => {
      obj.name = '鲁班'
      console.log(obj.name);
    }
      return {
        obj,
        change
      }
  },

};
</script>
